
package DAO;

import DTO.SAN;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;

public class SanDAO {
     Connect con= new Connect();
     Connection cont;
     public SanDAO() 
     {
         cont=con.Connect("sa","123456"); 
     }
     public ResultSet Getdata()
     {
        String sqlString="Select * from SAN";
        return con.GetdataTable(sqlString);
     }
      public String GetMasanFTensan(SAN s)
      {
          return con.GetMaDK("MA_SAN", "SAN", "TEN_SAN", s.getTensan());
      }
}
